import { createApp } from 'vue'

import App from './App.vue'
import { setupI18n } from './locales'

import { setupRouter } from './router'
import { setupStore } from './stores'
import 'virtual:uno.css'

export default async function bootstrap() {
  const app = createApp(App)

  setupStore(app)

  await setupI18n(app)

  await setupRouter(app)

  return app
}
